// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addFilePredict POST /api/file/predict/add */
export async function addFilePredictUsingPost(
  body: API.FilePredictAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/file/predict/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteFilePredict POST /api/file/predict/delete */
export async function deleteFilePredictUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/file/predict/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** editFilePredict POST /api/file/predict/edit */
export async function editFilePredictUsingPost(
  body: API.FilePredictEditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/file/predict/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getFilePredictById GET /api/file/predict/get */
export async function getFilePredictByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFilePredictByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFilePredict_>('/api/file/predict/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getFileVariablesList POST /api/file/predict/get/variables */
export async function getFileVariablesListUsingPost(
  body: API.FilePredictGetVariablesRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFilePredictVariables_>('/api/file/predict/get/variables', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getFilePredictVOById GET /api/file/predict/get/vo */
export async function getFilePredictVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getFilePredictVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseFilePredictVO_>('/api/file/predict/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listFilePredictByPage POST /api/file/predict/list/page */
export async function listFilePredictByPageUsingPost(
  body: API.FilePredictQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageFilePredict_>('/api/file/predict/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listFilePredictVOByPage POST /api/file/predict/list/page/vo */
export async function listFilePredictVoByPageUsingPost(
  body: API.FilePredictQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageFilePredictVO_>('/api/file/predict/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
